@isTest
private class TestCaseEscalatorScheduler {
	
	/****Condition where valid Case is found ****/
    static testMethod void caseFound() {
    	
    	/*Creating Test Data*/
    	Lead testLead = TestDatabaseCMS.createLeadForTesting();
    	West_Case_Names__c testCaseNames = TestDatabaseCMS.createWestCaseNames();
    	
    	String caseRecordType = Schema.Sobjecttype.Case.getRecordTypeInfosByName().get('West - Support').getRecordTypeId();
		Case testCase = new Case(RecordTypeId=caseRecordType,Subject='TestCase1',Description='TestDesc',lead__c=testLead.Id,Case_Name__c='Academic Probation');
		insert testCase;
		
		/*Testing*/
    	test.startTest();
    	
    	String scheduleTimeString = system.now().addMinutes(2).format('ss mm HH dd MM ? yyyy');
		CaseEscalatorScheduler scheduler = new CaseEscalatorScheduler();
		/*String jobId = */system.schedule('Case Escalator :'+scheduleTimeString, scheduleTimeString, scheduler);

		//list <CronTrigger> scheduledJobs = [SELECT Id, CronExpression, TimesTriggered, NextFireTime FROM CronTrigger WHERE id = :jobId];
        
        test.stopTest();
        
        /*Asserting Correctness*/
        //System.assert(scheduledJobs.size()==1);
    }
    
    /****Condition where No Case is found() ****/
    static testMethod void noCaseFound() {
		
		/*Creating Test Data*/
    	
    	/*Testing*/
    	test.startTest();
    	
    	String scheduleTimeString = system.now().addMinutes(2).format('ss mm HH dd MM ? yyyy');
		CaseEscalatorScheduler scheduler = new CaseEscalatorScheduler();
		/*String jobId = */system.schedule('Case Escalator :'+scheduleTimeString, scheduleTimeString, scheduler);

		//list <CronTrigger> scheduledJobs = [SELECT Id, CronExpression, TimesTriggered, NextFireTime FROM CronTrigger WHERE id = :jobId];
        
        test.stopTest();
        
        //list <CronTrigger> futureScheduledJobs = [SELECT Id, CronExpression, TimesTriggered, NextFireTime FROM CronTrigger WHERE state='WAITING'];
        
        /*Asserting Correctness*/
        //System.assert(scheduledJobs.size()==1);
        //System.assert(futureScheduledJobs.size()==1);
    }
}